export default {
  navProps: {
    type: Object,
    default: () => ({}),
  },
  transformSearchParams: {
    // 转换查询表单参数
    type: Function,
  },
  columns: {
    // 表格列配置
    type: Array,
    default: () => [],
  },
  dataRequest: {
    type: Function,
  },
  //是否显示序号
  showIndex: {
    type: Boolean,
    default: false,
  }, //是否显示复选
  showSelection: {
    type: Boolean,
    default: false,
  },
  // 分页配置
  showPagination: {
    type: Boolean,
    default: true,
  }, // 第一次是否自动加载
  autoLoad: {
    type: Boolean,
    default: true,
  },
  showTool: {
    // 是否显示工具
    type: Boolean,
    default: true,
  },
  currentPage: {
    type: Number,
    default: 1,
  },
  pageSize: {
    type: Number,
    default: 10,
  },
  pageSizes: {
    type: Array,
    default: function () {
      return [10, 20, 50, 100, 200, 500, 1000];
    },
  },
  // excel导出配置
  exportFileName: {
    type: String,
    default: "导出数据",
  },
  exportBookType: {
    type: String,
    default: "xlsx",
  },
  exportAutoWidth: {
    type: Boolean,
    default: true,
  },
  exportFormatter: {
    type: Function,
    default: null,
  },
  hideNavigation: {
    type: Boolean,
    default: false,
  },
  showTooltip: {
    type: Boolean,
    default: false,
  },
  layout: String,
  defaultSort: {
    type: Object,
    default: ()=>{},
  },
};
